package io.renren.modules.app.mapper;

import io.renren.modules.PCguanli.entity.QuestionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface  RpQuestionMapper {
    @Select("<script>" +
            "SELECT * FROM user_question_rp WHERE number IN " +
            "<foreach item='item' index='index' collection='questionNumbers' open='(' separator=',' close=')'>" +
            "#{item}" +
            "</foreach>" +
            "</script>")
    List<QuestionEntity> getRpQuestionsByNumbers(@Param("questionNumbers") List<Long> questionNumbers);
}
